﻿using System.ComponentModel.DataAnnotations;

namespace Healinker.Entities
{
    [MetadataType( typeof( DiseaseMedicationMetadata ) )]
    public partial class DiseaseMedication
    {
        internal sealed class DiseaseMedicationMetadata
        {
            [Key, Column( Order = 0 )]
            public int MedicationId { get; set; }
            [Key, Column( Order = 1 )]
            public int DiseaseId { get; set; }
        }
    }

    [MetadataType( typeof( DiseaseComplicationMetadata ) )]
    public partial class DiseaseComplication
    {
        internal sealed class DiseaseComplicationMetadata
        {
            [Key, Column( Order = 0 )]
            public int DiseaseId { get; set; }
            [Key, Column( Order = 1 )]
            public int ComplicationDiseaseId { get; set; }
        }
    }

    [MetadataType( typeof( DiseaseSymptomMetadata ) )]
    public partial class DiseaseSymptom
    {
        internal sealed class DiseaseSymptomMetadata
        {
            [Key, Column( Order = 0 )]
            public int SymptomId { get; set; }
            [Key, Column( Order = 1 )]
            public int DiseaseId { get; set; }
        }
    }

}
